﻿@model IEnumerable<QuanLyGiaoVuUI.Models.ThongBao.ThongBaoViewModel>
@{
    Layout = null;
    }

            @if (Model != null && Model.Count() > 0)
            {
                var count=1;
                <table class="data display datatable">
                    <tr>
                        <th class="sorting"><input type="checkbox" id="checkall" />#</th>
                        <th class="sorting">Tiêu đề thông báo</th>
                        <th class="sorting">Ngày Gửi</th>
                        @*<th class="sorting">Xóa</th>*@
                    </tr>

                    @foreach (var thongBao in Model)
                    {
                        <tr id="@thongBao.MaThongBao" class="gradeA @(++count % 2 == 0 ? "even" : "odd")">
                            <td class="odd gradeX"><input type="checkbox" class="checkbox" value="@thongBao.MaThongBao"/></td>
                            <td class="odd gradeX">@thongBao.TieuDeThongBao</td>
                            <td class="odd gradeX">@thongBao.NgayGuiThongBao</td>
                            @*<td class="odd gradeX"><a class="xoaThongBao" rel="@chitiet.MaThongBao" href="#">[X]</a></td>*@
                        </tr>
                    }

                </table>
                <div><input type="button" id="deleteAll" value="Xoá" /></div>
            }
            else
            {
                <div style="margin: 20px; font-size: 20px; color: gray; font-style: italic;">
                    Chưa gửi thông báo nào!
                </div>
            }            

